package com.unei.scala.demo.test

import org.junit.Test;

class ArrayDemo {

    @Test
    def testMakeArray() {
    	val greetings=new Array[String](3);
    	greetings(0)="hello";
    	greetings(1)=",";
    	greetings(2)="world!";
    	greetings.foreach(print);
    	greetings.update(1, "!");
    	greetings.foreach(print);
    	println("for----");
    	for(i<-0 to 2)
    	    print(greetings(i));
    }
}